package com.example.zhaohang.utils;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.zhaohang.myapplication.MyApplication;
import com.example.zhaohang.selfeapplication.R;
import com.squareup.leakcanary.RefWatcher;

/**
 * Created by 赵航 on 2017/11/19.
 */

public class ThreadFragmet extends BasicFragment {
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = View.inflate(getContext(), R.layout.threadfragmet, null);
        TextView textView = (TextView) view.findViewById(R.id.text);
        textView.setText("第三个界面");

        return view;
    }
    @Override
    public void onDestroy() {
        super.onDestroy();
        RefWatcher refWatcher = MyApplication.getRefWatcher(getActivity());
        refWatcher.watch(this);
    }
}
